<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>电表</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <link rel="stylesheet" href="/emonitor/static/layui_v2/css/layui.css">
</head>
<body>
<table class="layui-table" lay-data="{height:315, url:'/emonitor/machine/energy-list', page:true, id:'machine'}"
       lay-filter="machine">
    <thead>
    <tr>
        <th lay-data="{field:'machineId', width:80, sort: true}">电表ID</th>
        <th lay-data="{field:'energy', width:80}">度数</th>
        <th lay-data="{field:'updatetime', width:200, sort: true}">更新时间</th>
    </tr>
    </thead>
</table>
</body>
<script type="text/javascript" src="/emonitor/static/layui_v2/layui.js"></script>
<script>
    layui.use('table', function () {
        var table = layui.table;
    });
</script>
</html>
